﻿using System;

namespace Survey.Model.SurveyEntities
{
    public class NumericAnswer: Answer,IAnswer
    {
        public virtual double Value { get; set; }

        public NumericAnswer(): base()
        { 
        }

        public NumericAnswer(Double value)
        {
            Value = value;
        }
        public virtual string GetString()
        {
            return Value.ToString();
        }

        public virtual int GetAnswerType()
        {
            return (int)AnswerType.NumericType;
        }
    }
}
